package com.ruoyi.exam.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 校历信息对象 exam_calendar
 * 
 * @author ruoyi
 * @date 2025-11-11
 */
public class ExamCalendar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 校历ID */
    private Long calendarId;

    /** 学期 */
    @Excel(name = "学期")
    private String semester;

    /** 周次 */
    @Excel(name = "周次")
    private Long weekNo;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    public void setCalendarId(Long calendarId) 
    {
        this.calendarId = calendarId;
    }

    public Long getCalendarId() 
    {
        return calendarId;
    }

    public void setSemester(String semester) 
    {
        this.semester = semester;
    }

    public String getSemester() 
    {
        return semester;
    }

    public void setWeekNo(Long weekNo) 
    {
        this.weekNo = weekNo;
    }

    public Long getWeekNo() 
    {
        return weekNo;
    }

    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }

    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("calendarId", getCalendarId())
            .append("semester", getSemester())
            .append("weekNo", getWeekNo())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
